Packetery\Module\Checkout D

Total Complexity 226
Dependencies 42
Dependents 5
Total lines 1,585
Lines of code 868
Logical lines of code 461
Comment lines 332
Methods 49
Properties 21

Methods 49

Method Rating Maintainability Complexity Lines of code
validateCheckoutData()
C
33 25 93
updateOrderMetaBlocks()
C
34 25 88
getPostDataIncludingStoredData()
B
41 18 56
getShippingRates()
B
40 17 55
calculateFees()
B
42 16 52
filterPaymentGateways()
A
47 11 35
getTaxClassWithMaxRate()
A
49 9 33
applyCodSurgarche()
S
53 7 22
getExpeditionDay()
S
52 6 24
isShippingRateRestrictedByProductsCategory()
S
55 6 20
getCODSurcharge()
S
60 6 13
createSettings()
S
42 3 50
isAgeVerification18PlusRequired()
S
60 5 13
areBlocksUsedInCheckout()
S
57 4 20
getChosenMethodFromSession()
S
63 5 10
register_hooks()
S
53 3 23
renderWidgetButtonAfterShippingRate()
S
57 3 18
getDisallowedShippingRateIds()
S
61 3 12
renderEstimatedDeliveryDateSection()
S
65 3 11
getCartWeightKg()
S
63 3 11
renderWidgetButtonTableRow()
S
59 2 15
getFormattedShippingMethodName()
S
69 3 6
__construct()
S
53 1 23
isCarDeliveryOrder()
S
72 2 5
createSettingsAjax()
S
68 2 7
updateOrderMeta()
S
69 2 7
updateShippingRates()
S
69 2 6
isPickupPointOrder()
S
72 2 5
isPickupPointCarrier()
S
71 2 6
getCarrierIdFromShippingMethod()
S
68 2 7
getCarrierId()
S
69 2 7
updateShippingPackages()
S
70 2 6
calculateShipping()
S
67 2 8
getChosenPaymentMethod()
S
70 2 7
getChosenMethod()
S
68 2 7
getCustomerCountry()
S
69 2 7
getTotalCartProductValue()
S
68 2 7
isHomeDeliveryOrder()
S
72 2 5
getTransientNamePacketaCheckoutData()
S
66 2 9
getPickupPointValidateRequest()
S
61 1 14
renderHiddenInputFields()
S
61 1 14
getCartPrice()
S
80 1 3
removeShippingMethodPrefix()
S
78 1 3
getCartContentsTotalIncludingTax()
S
80 1 3
createShippingRate()
S
65 1 9
isPacketeryShippingMethod()
S
75 1 4
isFreeShippingCouponApplied()
S
80 1 3
calcTaxExclusiveFeeAmount()
S
77 1 3
getRateCost()
S
78 1 3